gtk4.git
9 years agospinbutton: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:54 +0000 (00:21 +0200)]
spinbutton: Use gdk_window_new_input()

9 years agoswitch: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:45 +0000 (00:21 +0200)]
switch: Use gdk_window_new_input()

9 years agopathbar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:33 +0000 (00:21 +0200)]
pathbar: Use gdk_window_new_input()

9 years agopaned: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:17 +0000 (00:21 +0200)]
paned: Use gdk_window_new_child() and gdk_window_new_input()

9 years agonotebook: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:20:47 +0000 (00:20 +0200)]
notebook: Use gdk_window_new_child() and gdk_window_new_input()

9 years agomenu: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:32 +0000 (00:20 +0200)]
menu: Use gdk_window_new_child()

9 years agolayout: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:17 +0000 (00:20 +0200)]
layout: Use gdk_window_new_child()

9 years agoiconview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:02 +0000 (00:20 +0200)]
iconview: Use gdk_window_new_child()

9 years agotoolitemgroup: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:23:17 +0000 (20:23 +0200)]
toolitemgroup: Use gdk_window_new_child()

9 years agotoolitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:23:04 +0000 (20:23 +0200)]
toolitem: Use gdk_window_new_input()

9 years agotoolbar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:22:47 +0000 (20:22 +0200)]
toolbar: Use gdk_window_new_input()

9 years agopopover: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:22:33 +0000 (20:22 +0200)]
popover: Use gdk_window_new_child()

9 years agomenushell: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:22:16 +0000 (20:22 +0200)]
menushell: Use gdk_window_new_child()

9 years agolabel: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:21:55 +0000 (20:21 +0200)]
label: Use gdk_window_new_input()

9 years agomenuitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:21:42 +0000 (20:21 +0200)]
menuitem: Use gdk_window_new_input()

9 years agooverlay: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:21 +0000 (20:21 +0200)]
overlay: Use gdk_window_new_child()

9 years agolistbox: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:10 +0000 (20:21 +0200)]
listbox: Use gdk_window_new_child()

9 years agoflowbox: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:00 +0000 (20:21 +0200)]
flowbox: Use gdk_window_new_child()

9 years agofixed: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:48 +0000 (20:20 +0200)]
fixed: Use gdk_window_new_child()

9 years agoscrolledwindow: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:32 +0000 (20:20 +0200)]
scrolledwindow: Use gdk_window_new_child()

9 years agorevealer: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:14 +0000 (20:20 +0200)]
revealer: Use gdk_window_new_child()

9 years agostack: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:05 +0000 (20:20 +0200)]
stack: Use gdk_window_new_child()

9 years agotextview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:49 +0000 (20:19 +0200)]
textview: Use gdk_window_new_child()

9 years agoviewport: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:32 +0000 (20:19 +0200)]
viewport: Use gdk_window_new_child()

9 years agotoolpalette: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:10 +0000 (20:19 +0200)]
toolpalette: Use gdk_window_new_child()

9 years agoglarea: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:54 +0000 (20:18 +0200)]
glarea: Use gdk_window_new_input()

9 years agoexpander: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:33 +0000 (20:18 +0200)]
expander: Use gdk_window_new_input()

9 years agowindow: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:08 +0000 (20:18 +0200)]
window: Use gdk_window_new_child() and gdk_window_new_input()

9 years agotests: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:17:03 +0000 (20:17 +0200)]
tests: Use gdk_window_new_child()

9 years agotreeviewcolumn: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:16:34 +0000 (20:16 +0200)]
treeviewcolumn: Use gdk_window_new_input()

9 years agotreeview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:16:12 +0000 (20:16 +0200)]
treeview: Use gdk_window_new_child()

9 years agoeventbox: Use gdk_window_new_input() and gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:15:22 +0000 (20:15 +0200)]
eventbox: Use gdk_window_new_input() and gdk_window_new_child()

9 years agoentry: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:15:05 +0000 (20:15 +0200)]
entry: Use gdk_window_new_input()

9 years agodrawingarea: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:14:49 +0000 (20:14 +0200)]
drawingarea: Use gdk_window_new_child()

9 years agocolorswatch: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:14:32 +0000 (20:14 +0200)]
colorswatch: Use gdk_window_new_input()

9 years agocalendar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:14:09 +0000 (20:14 +0200)]
calendar: Use gdk_window_new_input()

9 years agobutton: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:13:46 +0000 (20:13 +0200)]
button: Use gdk_window_new_input()

9 years agoAPI: gdk: Add gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:11:23 +0000 (20:11 +0200)]
API: gdk: Add gdk_window_new_child() and gdk_window_new_input()

This is an attempt to get rid of gdk_window_new() for more specific use
cases. These 2 are for client-side windows - regular ones and input-only
ones resepectively.

So far all those functions just call into gdk_window_new().

9 years agocolorscale: Avoid invalid write
Timm Bäder [Mon, 17 Oct 2016 16:34:07 +0000 (18:34 +0200)]
colorscale: Avoid invalid write

9 years agoFix to Catalan translation
Jordi Mas [Mon, 17 Oct 2016 16:23:29 +0000 (18:23 +0200)]
Fix to Catalan translation

9 years agocssprovider: Return void, not TRUE
Benjamin Otte [Mon, 17 Oct 2016 15:41:03 +0000 (17:41 +0200)]
cssprovider: Return void, not TRUE

Parsing a css file always succeeds as CSS can recover from parsing
errors.

9 years agocssprovider: Remove GError out argument from load functions
Benjamin Otte [Mon, 17 Oct 2016 14:09:12 +0000 (16:09 +0200)]
cssprovider: Remove GError out argument from load functions

People should use the GtkCssProvider::parsing-error signal instead.

9 years agotextbufferserialize: declare set_error as G_GNUC_PRINTF
Ben Iofel [Mon, 17 Oct 2016 14:36:26 +0000 (10:36 -0400)]
textbufferserialize: declare set_error as G_GNUC_PRINTF

And fix a missing format argument

9 years agocolorscale: modify loop variables in loop body
Ben Iofel [Mon, 17 Oct 2016 14:14:19 +0000 (10:14 -0400)]
colorscale: modify loop variables in loop body

9 years agobuild: Use correct compiler flag
Emmanuele Bassi [Mon, 17 Oct 2016 14:12:21 +0000 (15:12 +0100)]
build: Use correct compiler flag

The name is -Wformat-nonliteral.

9 years agogtk+: Fix GI warnings about missing parameters
Garrett Regier [Mon, 17 Oct 2016 14:02:37 +0000 (07:02 -0700)]
gtk+: Fix GI warnings about missing parameters

These were removed for GTK+ 4.

9 years agobroadway: Remove redundant declaration
Emmanuele Bassi [Mon, 17 Oct 2016 13:56:38 +0000 (14:56 +0100)]
broadway: Remove redundant declaration

9 years agogtk/utils: Include stdio.h
Emmanuele Bassi [Mon, 17 Oct 2016 13:51:16 +0000 (14:51 +0100)]
gtk/utils: Include stdio.h

We need it because of the declaration using FILE*.

9 years agogtkicontheme: check if the context quark string is not null
Ignacio Casal Quinteiro [Mon, 17 Oct 2016 11:02:26 +0000 (13:02 +0200)]
gtkicontheme: check if the context quark string is not null

On windows you might not have a theme installed by default which
means that when trying to create the context quark it will fail.
If then we try to replace a NULL key in the hash table it will crash.

https://bugzilla.gnome.org/show_bug.cgi?id=769859

9 years agoRemove redundant variable declaration
Emmanuele Bassi [Mon, 17 Oct 2016 10:52:00 +0000 (11:52 +0100)]
Remove redundant variable declaration

The inner `var` declaration is shadowing the outer one.

9 years agobuild: Add various compiler warnings and errors
Emmanuele Bassi [Sat, 15 Oct 2016 20:39:31 +0000 (21:39 +0100)]
build: Add various compiler warnings and errors

Just like GLib, GTK+ would benefit from getting warnings and errors from
the compilers.

We check various, common warnings, especially for a future use of C99;
additionally, we promote some warnings to errors, in order to ensure
that simple mistakes are caught during the development phase, before
they are submitted to the code repository.

9 years agonotebook: Remove redundant variable declarations
Emmanuele Bassi [Mon, 17 Oct 2016 10:43:06 +0000 (11:43 +0100)]
notebook: Remove redundant variable declarations

We're already declaring notebook and priv at the top of the function,
and assigning them to the same values.

9 years agoicontheme: Drop unnecessary allocation
Emmanuele Bassi [Mon, 17 Oct 2016 10:34:36 +0000 (11:34 +0100)]
icontheme: Drop unnecessary allocation

Use a static array for the known icon sizes, now that we don't allow
registering custom icon sizes any more. This allows us to cut a one-off
allocation that makes Valgrind sad.

9 years agoAvoid variable shadowing in GtkShortcutsSection
Emmanuele Bassi [Sat, 15 Oct 2016 20:38:21 +0000 (21:38 +0100)]
Avoid variable shadowing in GtkShortcutsSection

9 years agoRemove declarations for getresuid()/getresgid()
Emmanuele Bassi [Sat, 15 Oct 2016 20:35:10 +0000 (21:35 +0100)]
Remove declarations for getresuid()/getresgid()

Back in 2001, their prototypes were missing from system headers, but
since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is
defined.

9 years agogtk: Add missing function declarations
Emmanuele Bassi [Sat, 15 Oct 2016 20:34:52 +0000 (21:34 +0100)]
gtk: Add missing function declarations

9 years agotext: Constify field of GtkTextLineSegmentClass
Emmanuele Bassi [Sat, 15 Oct 2016 20:33:11 +0000 (21:33 +0100)]
text: Constify field of GtkTextLineSegmentClass

We only use it internally for statically allocated structures, with
static strings, so there's no reason for it to be a `char*`.

9 years agogtk: Use appropriate constness for variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:32:51 +0000 (21:32 +0100)]
gtk: Use appropriate constness for variables

9 years agofilechooserwidget: Rename error variable
Emmanuele Bassi [Sat, 15 Oct 2016 20:30:47 +0000 (21:30 +0100)]
filechooserwidget: Rename error variable

Avoid shadowing an existing error.

9 years agofilechooserbutton: Remove unnecessary declaration
Emmanuele Bassi [Sat, 15 Oct 2016 20:30:27 +0000 (21:30 +0100)]
filechooserbutton: Remove unnecessary declaration

9 years agogtk: Mark internal functions as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:29:45 +0000 (21:29 +0100)]
gtk: Mark internal functions as static

These functions are only used within their compilation unit.

9 years agocolorscale: Rename variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:27:49 +0000 (21:27 +0100)]
colorscale: Rename variables

Avoid shadowing existing variables.

9 years agocellview: Constify argument
Emmanuele Bassi [Sat, 15 Oct 2016 20:27:23 +0000 (21:27 +0100)]
cellview: Constify argument

9 years agogtk: Cast static strings assigned to non-const variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:24:42 +0000 (21:24 +0100)]
gtk: Cast static strings assigned to non-const variables

GtkTargetEntry.target is particularly egregious, and it should really be
constified.

9 years agogtk: Include the appropriate headers
Emmanuele Bassi [Sat, 15 Oct 2016 20:22:48 +0000 (21:22 +0100)]
gtk: Include the appropriate headers

9 years agowidget: Make gtk_widget_get_parent_muxer() as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:20:35 +0000 (21:20 +0100)]
widget: Make gtk_widget_get_parent_muxer() as static

It's a private function, used only inside gtkwidget.c and not declared
in any private header.

9 years agoinspector: Mark internal function as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:19:39 +0000 (21:19 +0100)]
inspector: Mark internal function as static

9 years agoRemove redundant declarations
Emmanuele Bassi [Sat, 15 Oct 2016 20:19:12 +0000 (21:19 +0100)]
Remove redundant declarations

9 years agogdk/x11: Constify argument
Emmanuele Bassi [Sat, 15 Oct 2016 20:13:04 +0000 (21:13 +0100)]
gdk/x11: Constify argument

9 years agoAdd private header for GtkTextView
Emmanuele Bassi [Sat, 15 Oct 2016 19:38:13 +0000 (20:38 +0100)]
Add private header for GtkTextView

This allows us to declare the symbols that are currently used inside
gtktextdisplay.c without incurring in the wrath of the compiler.

9 years agoRemove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:36:50 +0000 (19:36 +0100)]
Remove redundant declarations

9 years agoFix _gtk_get_slowdown()
Emmanuele Bassi [Fri, 14 Oct 2016 18:35:59 +0000 (19:35 +0100)]
Fix _gtk_get_slowdown()

We need to pass void as the argument type.

9 years agoRemove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:35:40 +0000 (19:35 +0100)]
Remove redundant declarations

9 years agoInclude the appropriate headers
Emmanuele Bassi [Fri, 14 Oct 2016 18:34:51 +0000 (19:34 +0100)]
Include the appropriate headers

The GtkStackAccessible implementation should include the private header,
and the private header should include the public one.

9 years agoRemove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:34:29 +0000 (19:34 +0100)]
Remove redundant declarations

9 years agoUse appropriate const declaration for static strings
Emmanuele Bassi [Fri, 14 Oct 2016 18:33:53 +0000 (19:33 +0100)]
Use appropriate const declaration for static strings

9 years agoRemove re-declarations of public functions
Emmanuele Bassi [Fri, 14 Oct 2016 18:33:28 +0000 (19:33 +0100)]
Remove re-declarations of public functions

9 years agoRemove redundant declaration
Emmanuele Bassi [Fri, 14 Oct 2016 18:33:03 +0000 (19:33 +0100)]
Remove redundant declaration

9 years agostylecontext: Remove gtk_gradient_resolve_for_context()
Emmanuele Bassi [Mon, 17 Oct 2016 10:02:16 +0000 (11:02 +0100)]
stylecontext: Remove gtk_gradient_resolve_for_context()

Just like we remove gtk_gradient_resolve().

9 years agotextview: Remove commented block
Emmanuele Bassi [Mon, 17 Oct 2016 09:41:46 +0000 (10:41 +0100)]
textview: Remove commented block

It's referencing gdk_cairo_create(), which does not exist any more.

9 years agogdk: Comment out gdk_cairo_create()
Emmanuele Bassi [Mon, 17 Oct 2016 09:43:55 +0000 (10:43 +0100)]
gdk: Comment out gdk_cairo_create()

9 years agogdk: Remove mentions of gdk_cairo_create()
Emmanuele Bassi [Mon, 17 Oct 2016 09:42:48 +0000 (10:42 +0100)]
gdk: Remove mentions of gdk_cairo_create()

This function does not exist any more.

9 years agoFix the doc build
Matthias Clasen [Sun, 16 Oct 2016 18:09:12 +0000 (14:09 -0400)]
Fix the doc build

Remove no-longer-existing types.

9 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 16 Oct 2016 17:49:54 +0000 (19:49 +0200)]
Update POTFILES.in

9 years agogdk: Remove old code to create drawing context
Benjamin Otte [Thu, 13 Oct 2016 23:59:22 +0000 (01:59 +0200)]
gdk: Remove old code to create drawing context

You now have to use a GdkDrawingContext

9 years agotests: Remove custom preview from print-editor
Benjamin Otte [Sat, 15 Oct 2016 03:17:45 +0000 (05:17 +0200)]
tests: Remove custom preview from print-editor

It's using gdk_cairo_create() to do the drawing, which is unsupported.

9 years agotests: Remove code from testinput that does nothing
Benjamin Otte [Sat, 15 Oct 2016 03:02:20 +0000 (05:02 +0200)]
tests: Remove code from testinput that does nothing

9 years agogdk: Remove gdk_window_set_debug_updates()
Benjamin Otte [Tue, 11 Oct 2016 14:26:16 +0000 (16:26 +0200)]
gdk: Remove gdk_window_set_debug_updates()

The update tracking code was ugly and using deprecated drawing APIs. It
was also in the wrong place.

So instead of trying to keep it working, I'll remove it. We need to find
a better way to put it and make it work there.

9 years agowidget: Remove gtk_widget_set_double_buffered()
Benjamin Otte [Mon, 10 Oct 2016 22:17:31 +0000 (00:17 +0200)]
widget: Remove gtk_widget_set_double_buffered()

Everything is always double-buffered.

9 years agoshortcutswindow: Modernize some code
Benjamin Otte [Mon, 10 Oct 2016 14:53:32 +0000 (16:53 +0200)]
shortcutswindow: Modernize some code

No functional changes, just don't call valist functions anymore.

9 years agomenu: Modernize code
Benjamin Otte [Mon, 10 Oct 2016 14:52:50 +0000 (16:52 +0200)]
menu: Modernize code

No functional changes, just don't call valist functions anymore.

9 years agoAPI: sizegroup: Remove gtk_size_group_set_ignore_hidden()
Benjamin Otte [Sun, 9 Oct 2016 13:53:22 +0000 (15:53 +0200)]
API: sizegroup: Remove gtk_size_group_set_ignore_hidden()

9 years agoAPI: container: Remove GtkContainer::child property
Benjamin Otte [Sun, 9 Oct 2016 01:22:56 +0000 (03:22 +0200)]
API: container: Remove GtkContainer::child property

9 years agocontainer: Remove gtk_container_set_resize_mode()
Benjamin Otte [Sun, 9 Oct 2016 01:14:32 +0000 (03:14 +0200)]
container: Remove gtk_container_set_resize_mode()

9 years agoAPI: container: Remove gtk_container_set_border_width()
Benjamin Otte [Sun, 9 Oct 2016 00:32:00 +0000 (02:32 +0200)]
API: container: Remove gtk_container_set_border_width()

9 years agoAPI: stylecontext: Remove state argument from getters
Benjamin Otte [Sat, 8 Oct 2016 03:07:23 +0000 (05:07 +0200)]
API: stylecontext: Remove state argument from getters

The argument must always be the current state.

9 years agoAPI: Remove libgail-util
Benjamin Otte [Fri, 7 Oct 2016 23:27:36 +0000 (01:27 +0200)]
API: Remove libgail-util

9 years agoAPI: stylecontext: Remove regions
Benjamin Otte [Fri, 7 Oct 2016 23:16:46 +0000 (01:16 +0200)]
API: stylecontext: Remove regions

9 years agogdk: Remove unused argument parsing structs
Benjamin Otte [Fri, 7 Oct 2016 22:22:55 +0000 (00:22 +0200)]
gdk: Remove unused argument parsing structs

9 years agogdk: Remove leftover structs from ClientMessage days
Benjamin Otte [Fri, 7 Oct 2016 22:20:30 +0000 (00:20 +0200)]
gdk: Remove leftover structs from ClientMessage days